package com.coustemview.qianfeng.huaqiangbeistore.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by mingma on 2016/9/1.
 */
public class oversear_viewpagerevalute_adapter extends FragmentPagerAdapter {
       private List<Fragment> mFragments;
    public oversear_viewpagerevalute_adapter(FragmentManager fm,List<Fragment> mFragments) {
        super(fm);
        this.mFragments=mFragments;
    }

    @Override
    public Fragment getItem(int position) {
        return mFragments.get(position);
    }

    @Override
    public int getCount() {
        return mFragments==null?0:mFragments.size();
    }
}
